class Restaurant:
    def __init__(self, name, type):
        self.name = name
        self.type = type

    def describe(self):
        print(f'{self.name}---{self.type}')

    def open(self):
        print('open')


res = Restaurant('kfc', 'kuaicain')
res.describe()
res.open()


class User:
    def __init__(self, fist, last, age):
        self.first = fist
        self.last = last
        self.age = age

    def describe_user(self):
        print(f'{self.first} {self.last} {self.age}')

    def greet(self):
        print('hello')


user = User('albert', 'shen', 18)
user.describe_user()
user.greet()
